package com.lx.feign;

import com.lx.config.feign.OAuth2FeignConfig;
import com.lx.domain.DepthItemVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@FeignClient(name = "match-service",contextId = "orderBooksFeignClient",configuration = OAuth2FeignConfig.class)
public interface OrderBooksFeignClient {

    /*
    *  查询该交易对的盘口数据
    *   key:sell:asks  value:List<DepthItemVo>
    *   key:buy:bids   value:List<DepthItemVo>
    * */
    @GetMapping("/match/depth")
    Map<String, List<DepthItemVo>> querySymbolDepth(@RequestParam String symbol);
}
